package com.health.db.dao.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.ServiceInterface;
import com.health.db.dao.user.IUserPatientDao;
import com.health.db.mapper.UserPatientMapper;
import com.health.db.model.UserPatient;
import com.health.db.model.UserPatientExample;

/**
 * 人员名单表
 * @author YC
 *
 */
@Component("userPatientDao")
public class UserPatientDaoImpl extends ServiceInterface implements
		IUserPatientDao {

	@Autowired
	UserPatientMapper userPatientMapper;

	@Override
	public int insert(UserPatient record) {
		// TODO Auto-generated method stub
		return userPatientMapper.insert(record);
	}

	@Override
	public List<UserPatient> selectByExample(UserPatientExample example) {
		// TODO Auto-generated method stub
		return userPatientMapper.selectByExample(example);
	}

	public UserPatientMapper getUserPatientMapper() {
		return userPatientMapper;
	}

	public void setUserPatientMapper(UserPatientMapper userPatientMapper) {
		this.userPatientMapper = userPatientMapper;
	}

	@Override
	public int updateByPrimaryKeySelective(UserPatient record) {
		// TODO Auto-generated method stub
		return userPatientMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByUserIdPatientId(UserPatient record) {
		// TODO Auto-generated method stub
		return userPatientMapper.updateByUserIdPatientId(record);
	}
	
}
